//
// Created by Wei on 2022/5/22.
//

#include "b_plus_tree.h"
#include "../enum/page_type.h"

b_plus_tree::b_plus_tree() : root_page() {
    root_page = new PAGE(0,0,0,FIL_PAGE_FSP_HDR);

}

int b_plus_tree::remove(unsigned int id) {
    return 0;
}

int b_plus_tree::insert(COMPACT_DATA *compactData) {
    PAGE* pre = this->root_page;

    return 0;
}

int b_plus_tree::update(COMPACT_DATA *compactData) {
    return 0;
}

int b_plus_tree::select(unsigned int id, COMPACT_DATA *receptor) {
    return 0;
}

PAGE *b_plus_tree::findPage(unsigned int id) {

    return nullptr;
}

